<script>
export default {
  mounted() {
      const appid = 'wx160647d2fd783b17';
      // const redirectUri = encodeURIComponent('http://zhxypt.net/wechat/teacher/callback');
      const redirectUri = encodeURIComponent('https://323c273j75.vicp.fun/wechat/teacher/callback');
      const authUrl = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=${redirectUri}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`;
      window.location.href = authUrl;
  }
}
</script>